From 58f905bd15a1cbbed3929118d2512ea54f1bf7be Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Fri, 13 Feb 2026 15:38:01 +0100 Subject: [PATCH] [PATCH] data: more precise prune pattern for tmpfiles This way the structure of private tmp directories is left intact, while the (aging) content of such directories is allowed to be removed. Signed-off-by: Zygmunt Krynicki Gbp-Pq: Name data-more-precise-prune-pattern-for-tmpfiles.patch --- data/systemd-tmpfiles/snapd.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/systemd-tmpfiles/snapd.conf b/data/systemd-tmpfiles/snapd.conf index da8f1c38..98329e3d 100644 --- a/data/systemd-tmpfiles/snapd.conf +++ b/data/systemd-tmpfiles/snapd.conf @@ -1,7 +1,7 @@ D! /tmp/snap-private-tmp 0700 root root - -# make sure the snap's private tmp folders are -# not reaped by age if configured by the system (noble+) -# this will still let the contents be reaped, just not the -# folder itself +# Allow removing content in the private tmp folders without affecting the +# architectural structure of the folders themselves. +X /tmp/snap-private-tmp X /tmp/snap-private-tmp/*/tmp +x /tmp/snap-private-tmp/*/tmp/.snap -- 2.30.2